package cn.wolfcode.cms.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
@JsonIgnoreProperties(value = {"handler"})
public class Role {
    private Long id;

    private String name;

    private String sn;

    //多对多关心: 权限与角色
    List<Permission> permissions = new ArrayList<>();

}